package com.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pojo.entity.Orders;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;

/**
 * @author : 杨世博
 * @date: Created in 16:18 2023/6/4
 */
@Mapper
public interface OrderMapper extends BaseMapper<Orders> {
    void insertOrder(Orders orders);

    void confirmReceipt(@Param("order_id") Integer orderId, Date date);

    void updateOrder(Integer orderId);

    void deliverGoods(Integer expressNo, String expressName, Integer orderId);

    void refund(Integer orderId);

    void dealWithRefund(Integer orderId);
}
